
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Pig;
import cn.edu.scau.cmi.hombio.domain.Pigsty;
import cn.edu.scau.cmi.hombio.domain.Task;
import cn.edu.scau.cmi.hombio.domain.Transfer;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Transfer entities
 * 
 */
public interface TransferService {

	/**
	* Save an existing Transfer entity
	* 
	 */
	public void saveTransfer(Transfer transfer);

	/**
	* Save an existing Pig entity
	* 
	 */
	public Transfer saveTransferPig(Integer id, Pig related_pig);

	/**
	* Save an existing Task entity
	* 
	 */
	public Transfer saveTransferTask(Integer id_1, Task related_task);

	/**
	* Delete an existing Task entity
	* 
	 */
	public Transfer deleteTransferTask(Integer transfer_id, Integer related_task_id);

	/**
	* Delete an existing Transfer entity
	* 
	 */
	public void deleteTransfer(Transfer transfer_1);

	/**
	 */
	public Transfer findTransferByPrimaryKey(Integer id_2);

	/**
	* Delete an existing Pigsty entity
	* 
	 */
	public Transfer deleteTransferPigsty(Integer transfer_id_1, Integer related_pigsty_id);

	/**
	* Return all Transfer entity
	* 
	 */
	public List<Transfer> findAllTransfers(Integer startResult, Integer maxRows);

	/**
	* Save an existing Pigsty entity
	* 
	 */
	public Transfer saveTransferPigsty(Integer id_3, Pigsty related_pigsty);

	/**
	* Delete an existing Pig entity
	* 
	 */
	public Transfer deleteTransferPig(Integer transfer_id_2, Integer related_pig_id);

	/**
	* Load an existing Transfer entity
	* 
	 */
	public Set<Transfer> loadTransfers();

	/**
	* Return a count of all Transfer entity
	* 
	 */
	public Integer countTransfers();
}